package com.zzw.basic.classloader;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Proxy;

public class ProxyTest {

	public static void main(String[] args) {
		InvocationHandler handler = new MyInvocationHandler();
		Student s = (Student) Proxy.newProxyInstance(Student.class.getClassLoader(), new Class[]{Student.class}, handler);
		s.walk();
		s.sayhello();
	}
}
